package cn.yll.api.order.request;

import cn.yll.api.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author yangll
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel("购买下单请求实体")
public class OrderRequest extends BaseRequest {

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("购买的商品行列表")
    private List<OrderLineRequest> lines;
}
